import QtQuick 2.6
import QtQuick.Layouts 1.1

import "../../../../Base/Config"

// column[1]
Rectangle {
    id:root
    property url source
    property alias text: textShow.text
    width: parent.width
    height: 365 * Size.ratio
    color: Color.foreground
    RowLayout {
        anchors.fill: parent
        spacing: 0
        Item {
            Layout.preferredWidth: 230 * Size.ratio
            Layout.preferredHeight: parent.height
            Image {
                anchors.centerIn: parent
                sourceSize.width: 180 * Size.ratio
                sourceSize.height: 320 * Size.ratio
                width: sourceSize.width
                height: sourceSize.height
                source: root.source
            }
        }
        Text {
            id: textShow
            Layout.fillHeight: true
            Layout.fillWidth: true
            padding: 15 * Size.ratio
            font.pixelSize: Size.normalFont
            color: Color.input
            wrapMode: Text.WrapAnywhere
        }
    }
} // column[1]
